package com.extend.innerClass;

public class Main {
    public static void main(String[] args) {
        Flyable f1 = getFlyable();
    }

    public static Flyable getFlyable() {
        return new Flyable() {
            @Override
            public void fly() {
                System.out.println("飞呀飞～～");
            }
        };
    }
}

// 接口
interface Flyable {
    public abstract void fly();
}

